#ifndef CASHIER_H
#define CASHIER_H

#include <QMainWindow>
#include <QtNetwork/QTcpServer>
#include <QtNetwork/QTcpSocket>
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QVariantList>
#include <QString>
#include <QMessageBox>
#include <QDialog>
#include <QTextEdit>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QByteArray>
#include <QStandardItemModel>
namespace Ui {
class cashier;
}

class cashier : public QMainWindow
{
    Q_OBJECT

public:
    explicit cashier(QWidget *parent = nullptr);
    ~cashier();
    void load_zd(QTableWidget* a);
signals:
    void mySignal();
private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void newClientConnect();

    void readClientdata();

    void on_pushButton_5_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::cashier *ui;
    QDialog fp;
    QTcpServer* _listen;
    QTcpSocket* _communtion;
    QStandardItemModel* model;
};

#endif // CASHIER_H
